<%@ include file="/taglibs.jsp"%>
<script type="text/javascript">
	Y.util.Event.onDOMReady(function() {
		Context.VigenciaCatalog = [];
		Context.VigenciaCatalog.push({
			label : 'Rechazado',
			value : '41'
		});
		Context.VigenciaCatalog.push({
			label : 'Confirmado',
			value : '73'
		});
		Context.VigenciaCatalog.push({
			label : 'Aceptado',
			value : '100'
		});
		Context.VigenciaCatalog.push({
			label : 'Aprobado',
			value : '39'
		});
		Context.VigenciaCatalog.push({
			label : 'Reemplazado',
			value : '44'
		});
		
	    Context.Busqueda = '<s:url action="importacion-async" method="busqueda" namespace="/" includeParams="none" />';
	    Context.Mercancia = '<s:url action="importacion-async" method="mercancia" namespace="/" includeParams="none" />';
	    Context.Valida = '<s:url action="importacion-async" method="validar" namespace="/" includeParams="none" />';
	    Context.DetalleCertificado = '<s:url action="importacion-async" method="detalleCertificado" namespace="/" includeParams="none" />';
	    
	    var FCCalendar = new Z.Calendar();
		FCCalendar.setButtonId('calIni'); 
		FCCalendar.setShortDateId('from'); 
		FCCalendar.setLargeDateId('from');
		FCCalendar.setDialogId('fechaIniDlg');
		FCCalendar.setDialogTitle('Desde');
		FCCalendar.setMinDate('01/01/1900'); 
		FCCalendar.setNavConfig(true);
		FCCalendar.construct();
		
		var FnCalendar = new Z.Calendar();
		FnCalendar.setButtonId('calFin');
		FnCalendar.setShortDateId('to');
		FnCalendar.setLargeDateId('to');
		FnCalendar.setDialogId('fechaEnteredWCDlg');
		FnCalendar.setDialogTitle('Hasta');
		FnCalendar.setMinDate('01/01/1900');
		FnCalendar.setNavConfig(true);
		FnCalendar.construct();
		
	});
		
	

</script>
<script type="text/javascript" src="${ctx}/importacion/include/importacion-dtbl.js?version=${version}"></script>
<script type="text/javascript" src="${ctx}/importacion/include/importacion.js?version=${version}"></script>


<div align="left">

<s:form theme="simple" id="CertificadosForm">
    <s:hidden name="jsonrecords"  value="%{''}" />
</s:form>

<s:form theme="simple" id="detalleForm">
 	<s:hidden name="idCert"  value="%{''}" />
</s:form>


<p id="titulo">> Importaci&oacute;n </p><br/>



<jsp:include page="importacion-busqueda.jsp" />
<jsp:include page="importacion-dtbl.jsp" />
<jsp:include page="detalle-dlg.jsp" />
<jsp:include page="detalle-merc-dlg.jsp" />

</div>




